import java.lang.String;

public class Test {
	public static void main (String[] str) {
		String s = "abb";
		String[] chs = s.split (".*b");
		for (String ch : chs)
			System.out.println(ch);
	}
}
